package hp.com.entity;

/*
购物车每一行数据的实体类
 */
public class CartData {
    private int dataId; //购物车数据ID
    private String userId;//购物车数据归属用户的ID
    private String itemId;//购物车商品的编号
    private int itemNumber;//购物车商品的数量
    private String suk;//商品的suk搭配信息
    private String pic;//预览图链接
    private double price;//总价格（单价*件数）
    private String easyName;//商品显示的名字
    private String fullname;//商品完整的名字
    private double singlePrice;//当前数据SUK单价

    public double getSinglePrice() {
        return singlePrice;
    }

    public void setSinglePrice(double singlePrice) {
        this.singlePrice = singlePrice;
    }

    public String getFullname() {
        return fullname;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public String getEasyName() {
        return easyName;
    }

    public void setEasyName(String easyName) {
        this.easyName = easyName;
    }



    public String getSuk() {
        return suk;
    }

    public void setSuk(String suk) {
        this.suk = suk;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public CartData() {
    }

    public CartData(int dataId, String userId, String itemId, int itemNumber,String suk,String pic,double price,String easyName,String fullname,double singlePrice) {
        this.dataId = dataId;
        this.userId = userId;
        this.itemId = itemId;
        this.itemNumber = itemNumber;
        this.suk=suk;
        this.pic=pic;
        this.price=price;
        this.easyName=easyName;
        this.fullname=fullname;
        this.singlePrice=singlePrice;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public int getItemNumber() {
        return itemNumber;
    }

    public void setItemNumber(int itemNumber) {
        this.itemNumber = itemNumber;
    }

    @Override
    public String toString() {
        return "CartData{" +
                "dataId=" + dataId +
                ", userId='" + userId + '\'' +
                ", itemId='" + itemId + '\'' +
                ", itemNumber=" + itemNumber +
                '}';
    }
}
